package BehaviorModel.chainOfResponsibilityModel;

/**
 * 功能描述: 3000 < x < 5000 经理审批
 * 2024/02/21
 * <p>
 * ZhangYi
 */
public class ManagerHandler extends Handler{

    public ManagerHandler(String name) {
        super(name);
    }

    @Override
    public void handleRequest(PurseRequest purseRequest) {
        if ( purseRequest.getPrice() >= 3000 && purseRequest.getPrice() <5000 ){
            System.out.println(this.name + "经理审批" + purseRequest.toString());
        }else {
            // 下一个审批人 副董事长 审批
            nextHandler.handleRequest(purseRequest);
        }
    }
}
